package com.dys.ai.service.impl;

import com.dys.ai.common.api.ApiResponse;
import com.dys.ai.common.api.ResponseEntity;
import com.dys.ai.mapper.CarriageMapper;
import com.dys.ai.service.CarriageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CarriageServiceImpl implements CarriageService {
    @Autowired
    private CarriageMapper carriageMapper;

    @Override
    public ResponseEntity listCarriages() {
        return ApiResponse.success("获取车厢列表成功", carriageMapper.selectCarriages());
    }
}
